package com.example.chenduoyun.safe.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Button;

import com.example.chenduoyun.safe.R;

/**
 * @author by created chen cloudy 2018/9/10 10:26
 **/

public class Setup1Activity extends BaseSetupActivity implements View.OnClickListener {
    private Button btn_next;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setup1);
        btn_next = findViewById(R.id.btn_next);
        btn_next.setOnClickListener(this);

    }

    @Override
    public void showNextPage() {
        judgeNextPage();
    }

    @Override
    public void showPrePage() {

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.btn_next:
               judgeNextPage();
                break;
            default:
                break;
        }
    }

    private void judgeNextPage() {
        Intent intent = new Intent(getApplicationContext(), Setup2Activity.class);
        startActivity(intent);
        finish();
        overridePendingTransition(R.anim.next_in_anim, R.anim.next_out_anim);
    }

}
